<?php

namespace Iut\omgl6Bundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class BilletIncidentType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('descriptionProbleme')
            ->add('urgence','choice', array(
    'choices' => array('Prioritaire' => 'Prioritaire', 'Normal' => 'Normal', 
                        'Non prioritaire' => 'Non prioritaire'  )))
            ->add('dateOuverture')
            //->add('dateFermeture')
            //->add('dateFinPrevue')
            ->add('pieceJointe','file',array(
            "label" => "Fichiers",
            "required" => FALSE,
            "attr" => array(
                "accept" => "image/*",
                "multiple" => "multiple",
                        )
                  ))
            //->add('resolu')
            ->add('idEmetteur')
            ->add('idPoste')
            ->add('idProblemeLogiciel', null, array('required' => false))
            ->add('idProblemeMateriel', null, array('required' => false))
        ;
    }

    public function getName()
    {
        return 'iut_omgl6bundle_billetincidenttype';
    }
}
